package com.ng.stat.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ng.common.utils.PageUtils;
import com.ng.stat.entity.BookEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
 * @author cb
 * @Description TODO
 * @date 2023/2/25
 */
@Mapper
public interface SearchDao extends BaseMapper<BookEntity> {

    IPage<BookEntity>findListPage(@Param("page") Page<BookEntity> page,BookEntity bb);


    IPage<BookEntity>queryPage1(@Param("page") Page<BookEntity> page,@Param(Constants.WRAPPER) Wrapper wrapper);

    int updateStateByIDs(@Param("ids") String[] ids);
}
